package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import cm.cool.web.bean.CurrencyPrice;
import cm.cool.web.service.price.PriceService;
import cm.cool.web.util.respon.PaginationDto;
import cm.cool.web.util.respon.R;

@RestController
@RequestMapping("/CurrencyPrice")
public class CurrencyPriceController {

	@Autowired
	PriceService priceService;

	/**
	 * 条件查找所有的记录
	 * 
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/selelctAll")
	public R selelctAll(CurrencyPrice currencyPrice, PaginationDto paginationDto) {
		return priceService.selectAll(currencyPrice, paginationDto);
	}
}
